import type { Response_Dto } from "@/Dto/Response/Api_Result";

import request from '@/utils/request'
import { requiredNumber } from "element-plus/es/components/table-v2/src/common.mjs";

/**
 * 获取成功率最高的三个客户
 * @returns 
 */
export const GetcustomerCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/GetcustomerCount',
        method: 'get'
    })
}
/**
 * 获取最近一周的会员增长数据
 * @returns 
 */
export const GetWeekVipCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/GetWeekVipCount',
        method: 'get'
    })
}
/**
 * 获取最近一周的客户增长数据
 * @returns 
 */
export const GetWeekCustomerCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/GetWeekCustomerCount',
        method: 'get'
    })
}


/**
 * 获取各会员等级的总人数
 * @returns 
 */
export const GetTypeVipCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/GetTypeVipCount',
        method: 'get'
    })
}
/**
 * 获取销量最高的五个套餐
 * @returns 
 */
export const GetPackCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/GetPackCount',
        method: 'get'
    })
}
/**
 * 获取最近三名新增的会员
 * @returns 
 * 
 */
export const RecentVip = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/RecentVip',
        method: 'get'
    })
}
/**
 * 会员总人数
 * @returns 
 */

export const VipTotal = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/viptotal',
        method: 'get'
    })
}
/**
 * 今日新增会员人数
 * @returns 
 */
export const TodayVipCount = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/TodayVipCount',
        method: 'get'
    })
}
/**
 * 今日销售额
 * @returns 
 */
export const TodayPrice = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/TodayPrice',
        method: 'get'
    })
}
/**
 * 总销售额
 * @returns 
 */
export const TotalPrice = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/TotalPrice',
        method: 'get'
    })
}

/**
 * 客户总数
 * @returns 
 */
export const CusTotal = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/CusTotal',
        method: 'get'
    })
}
/**
 * 今日新增客户
 * @returns 
 */
export const TodayCusTotal = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/TodayCusTotal',
        method: 'get'
    })
}
/**
 * 客户平均跟进进度
 * @returns 
 */
export const AvgCusRecord = (): Promise<Response_Dto> => {
    return request({
        url: 'api/count/AvgCusRecord',
        method: 'get'
    })
}
/**
 * 客户来源
 * @returns 
 */
export const GetSourceCount = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/GetSourceCount',
        method: 'get'
    })
}
/**
 * 客户成功率由低到高
 * @returns 
 */
export const GetCusSuccessCount = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/GetCusSuccessCount',
        method: 'get'
    })
}
/**
 * 获取类型数量
 * @returns 
 */
export const GetTypeCount = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/GetTypeCount',
        method: 'get'
    })
}
/**
 * 获取服务类产品销量
 * @returns 
 */
export const GetFwSales = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/GetFwSales',
        method: 'get'
    })
}
/**
 * 获取实物类产品销量
 * @returns 
 */
export const GetSwSales = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/GetSwSales',
        method: 'get'
    })
}
/**
 * 每月销量
 * @returns 
 */
export const MonthsSales = (): Promise<Response_Dto> =>{
    return request({
        url: 'api/count/MonthsSales',
        method: 'get'
    })
}


